home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 2386 < prev    next >
Mailbox/MIME Entity  |  1996-08-06  |  1.3 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news, ASCII text default
100% checkBytes Printable ASCII default
100% dexmagic PrintFox/Pagefox WEAK default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/news default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 73 74 | 65 72 6e 2e 66 6f 6b 75 |Path: st|ern.foku|
|00000010| 73 2e 67 6d 64 2e 64 65 | 21 6e 65 77 73 0a 46 72 |s.gmd.de|!news.Fr|
|00000020| 6f 6d 3a 20 57 61 74 73 | 6f 6e 20 3c 73 61 79 65 |om: Wats|on <saye|
|00000030| 67 68 40 66 6f 6b 75 73 | 2e 67 6d 64 2e 64 65 3e |gh@fokus|.gmd.de>|
|00000040| 0a 4e 65 77 73 67 72 6f | 75 70 73 3a 20 63 6f 6d |.Newsgro|ups: com|
|00000050| 70 2e 6c 61 6e 67 2e 63 | 2b 2b 0a 53 75 62 6a 65 |p.lang.c|++.Subje|
|00000060| 63 74 3a 20 52 65 3a 20 | 4f 76 65 72 6c 6f 61 64 |ct: Re: |Overload|
|00000070| 20 6f 66 20 6f 70 65 72 | 61 74 6f 72 3d 0a 44 61 | of oper|ator=.Da|
|00000080| 74 65 3a 20 57 65 64 2c | 20 31 37 20 4a 61 6e 20 |te: Wed,| 17 Jan |
|00000090| 31 39 39 36 20 31 35 3a | 35 31 3a 30 35 20 2b 30 |1996 15:|51:05 +0|
|000000a0| 31 30 30 0a 4f 72 67 61 | 6e 69 7a 61 74 69 6f 6e |100.Orga|nization|
|000000b0| 3a 20 47 4d 44 20 46 4f | 4b 55 53 20 2d 20 52 65 |: GMD FO|KUS - Re|
|000000c0| 73 65 61 72 63 68 20 49 | 6e 73 74 69 74 75 74 65 |search I|nstitute|
|000000d0| 20 66 6f 72 20 4f 70 65 | 6e 20 43 6f 6d 6d 75 6e | for Ope|n Commun|
|000000e0| 69 63 61 74 69 6f 6e 20 | 53 79 73 74 65 6d 73 0a |ication |Systems.|
|000000f0| 4d 65 73 73 61 67 65 2d | 49 44 3a 20 3c 33 30 46 |Message-|ID: <30F|
|00000100| 44 30 43 44 39 2e 33 39 | 38 35 40 66 6f 6b 75 73 |D0CD9.39|85@fokus|
|00000110| 2e 67 6d 64 2e 64 65 3e | 0a 52 65 66 65 72 65 6e |.gmd.de>|.Referen|
|00000120| 63 65 73 3a 20 3c 33 30 | 46 42 43 41 41 31 2e 33 |ces: <30|FBCAA1.3|
|00000130| 34 41 37 40 6e 6f 76 65 | 6c 6c 2e 63 6f 6d 3e 0a |4A7@nove|ll.com>.|
|00000140| 4e 4e 54 50 2d 50 6f 73 | 74 69 6e 67 2d 48 6f 73 |NNTP-Pos|ting-Hos|
|00000150| 74 3a 20 70 6f 6c 6c 75 | 78 2e 66 6f 6b 75 73 2e |t: pollu|x.fokus.|
|00000160| 67 6d 64 2e 64 65 0a 4d | 69 6d 65 2d 56 65 72 73 |gmd.de.M|ime-Vers|
|00000170| 69 6f 6e 3a 20 31 2e 30 | 0a 43 6f 6e 74 65 6e 74 |ion: 1.0|.Content|
|00000180| 2d 54 79 70 65 3a 20 74 | 65 78 74 2f 70 6c 61 69 |-Type: t|ext/plai|
|00000190| 6e 3b 20 63 68 61 72 73 | 65 74 3d 75 73 2d 61 73 |n; chars|et=us-as|
|000001a0| 63 69 69 0a 43 6f 6e 74 | 65 6e 74 2d 54 72 61 6e |cii.Cont|ent-Tran|
|000001b0| 73 66 65 72 2d 45 6e 63 | 6f 64 69 6e 67 3a 20 37 |sfer-Enc|oding: 7|
|000001c0| 62 69 74 0a 58 2d 4d 61 | 69 6c 65 72 3a 20 4d 6f |bit.X-Ma|iler: Mo|
|000001d0| 7a 69 6c 6c 61 20 32 2e | 30 62 34 20 28 58 31 31 |zilla 2.|0b4 (X11|
|000001e0| 3b 20 49 3b 20 53 75 6e | 4f 53 20 35 2e 34 20 73 |; I; Sun|OS 5.4 s|
|000001f0| 75 6e 34 6d 29 0a 54 6f | 3a 20 47 72 65 67 20 4a |un4m).To|: Greg J|
|00000200| 6f 68 6e 73 6f 6e 20 3c | 67 72 65 67 6a 6f 40 6e |ohnson <|gregjo@n|
|00000210| 6f 76 65 6c 6c 2e 63 6f | 6d 3e 0a 0a 47 72 65 67 |ovell.co|m>..Greg|
|00000220| 20 4a 6f 68 6e 73 6f 6e | 20 77 72 6f 74 65 3a 0a | Johnson| wrote:.|
|00000230| 3e 20 63 6c 61 73 73 20 | 42 61 73 65 4f 62 6a 20 |> class |BaseObj |
|00000240| 7b 0a 3e 20 70 75 62 6c | 69 63 3a 0a 3e 20 20 20 |{.> publ|ic:.> |
|00000250| 20 20 20 20 20 20 6c 6f | 6e 67 20 78 3b 0a 3e 20 | lo|ng x;.> |
|00000260| 20 20 20 20 20 20 20 20 | 42 61 73 65 4f 62 6a 26 | |BaseObj&|
|00000270| 20 6f 70 65 72 61 74 6f | 72 3d 28 42 61 73 65 4f | operato|r=(BaseO|
|00000280| 62 6a 26 29 3b 0a 3e 20 | 20 20 20 20 20 20 20 20 |bj&);.> | |
|00000290| 42 61 73 65 4f 62 6a 28 | 76 6f 69 64 29 20 3a 20 |BaseObj(|void) : |
|000002a0| 78 28 30 29 20 7b 7d 3b | 0a 3e 20 7d 3b 0a 3e 20 |x(0) {};|.> };.> |
|000002b0| 0a 3e 20 42 61 73 65 4f | 62 6a 26 20 42 61 73 65 |.> BaseO|bj& Base|
|000002c0| 4f 62 6a 3a 3a 6f 70 65 | 72 61 74 6f 72 3d 28 42 |Obj::ope|rator=(B|
|000002d0| 61 73 65 4f 62 6a 20 20 | 26 20 70 74 72 29 0a 3e |aseObj |& ptr).>|
|000002e0| 20 7b 0a 3e 20 20 20 20 | 20 20 20 20 20 2a 74 68 | {.> | *th|
|000002f0| 69 73 20 3d 20 70 74 72 | 3b 20 2f 2f 20 74 68 69 |is = ptr|; // thi|
|00000300| 73 20 77 69 6c 6c 20 72 | 65 63 75 72 73 69 76 65 |s will r|ecursive|
|00000310| 6c 79 20 63 61 6c 6c 20 | 6f 70 65 72 61 74 6f 72 |ly call |operator|
|00000320| 3d 0a 3e 20 20 20 20 20 | 20 20 20 20 72 65 74 75 |=.> | retu|
|00000330| 72 6e 20 2a 74 68 69 73 | 3b 0a 3e 20 7d 0a 0a 47 |rn *this|;.> }..G|
|00000340| 72 65 67 2c 0a 0a 74 68 | 65 20 75 73 61 67 65 20 |reg,..th|e usage |
|00000350| 6f 66 20 27 3d 27 20 74 | 68 69 73 20 77 61 79 20 |of '=' t|his way |
|00000360| 69 73 20 74 68 65 20 64 | 65 66 61 75 6c 74 0a 62 |is the d|efault.b|
|00000370| 65 68 61 76 69 6f 75 72 | 20 6f 66 20 65 76 65 72 |ehaviour| of ever|
|00000380| 79 20 6f 62 6a 65 63 74 | 20 61 73 73 69 67 6e 6d |y object| assignm|
|00000390| 65 6e 74 20 28 62 69 6e | 61 72 79 0a 63 6f 70 79 |ent (bin|ary.copy|
|000003a0| 2c 20 6f 72 20 61 6c 6c | 2d 65 6c 65 6d 65 6e 74 |, or all|-element|
|000003b0| 73 2d 63 6f 70 79 20 6f | 72 20 77 68 61 74 65 76 |s-copy o|r whatev|
|000003c0| 65 72 29 2e 0a 57 68 65 | 6e 20 79 6f 75 20 6f 76 |er)..Whe|n you ov|
|000003d0| 65 72 6c 6f 61 64 20 74 | 68 65 20 61 73 73 69 67 |erload t|he assig|
|000003e0| 6e 6d 65 6e 74 2c 20 79 | 6f 75 20 75 73 75 61 6c |nment, y|ou usual|
|000003f0| 6c 79 0a 77 61 6e 74 20 | 74 6f 20 63 68 61 6e 67 |ly.want |to chang|
|00000400| 65 20 74 68 69 73 20 73 | 65 6d 61 6e 74 69 63 73 |e this s|emantics|
|00000410| 2c 20 69 2e 20 65 2e 20 | 63 6f 70 79 0a 6f 6e 6c |, i. e. |copy.onl|
|00000420| 79 20 70 61 72 74 73 2e | 0a 45 6e 73 75 72 65 20 |y parts.|.Ensure |
|00000430| 79 6f 75 72 73 65 6c 66 | 20 74 68 61 74 20 79 6f |yourself| that yo|
|00000440| 75 20 68 61 76 65 20 69 | 6d 70 6c 65 6d 65 6e 74 |u have i|mplement|
|00000450| 65 64 0a 61 20 2a 63 6f | 70 79 20 63 6f 6e 73 74 |ed.a *co|py const|
|00000460| 72 75 63 74 6f 72 2a 20 | 66 6f 72 20 65 61 63 68 |ructor* |for each|
|00000470| 20 63 6c 61 73 73 20 74 | 68 61 74 20 63 68 61 6e | class t|hat chan|
|00000480| 67 65 73 0a 74 68 65 20 | 61 73 73 69 67 6e 6d 65 |ges.the |assignme|
|00000490| 6e 74 20 73 65 6d 61 6e | 74 69 63 73 2e 0a 2d 2d |nt seman|tics..--|
|000004a0| 20 0a 2a 09 47 72 65 65 | 74 69 6e 78 20 66 72 6f | .*.Gree|tinx fro|
|000004b0| 6d 20 57 61 74 73 6f 6e | 20 28 73 61 79 65 67 68 |m Watson| (sayegh|
|000004c0| 40 66 6f 6b 75 73 2e 67 | 6d 64 2e 64 65 29 0a 09 |@fokus.g|md.de)..|
|000004d0| 68 74 74 70 3a 2f 2f 77 | 77 77 2e 66 6f 6b 75 73 |http://w|ww.fokus|
|000004e0| 2e 67 6d 64 2e 64 65 2f | 6f 76 6d 61 2f 65 6d 70 |.gmd.de/|ovma/emp|
|000004f0| 6c 6f 79 65 65 73 2f 73 | 61 79 65 67 68 2f 65 6e |loyees/s|ayegh/en|
|00000500| 74 72 79 2e 68 74 6d 6c | 0a 09 73 69 67 6e 61 6c |try.html|..signal|
|00000510| 28 53 49 47 53 45 47 56 | 2c 53 49 47 5f 49 47 4e |(SIGSEGV|,SIG_IGN|
|00000520| 29 3b 0a | |);. | |
+--------+-------------------------+-------------------------+--------+--------+